﻿using System;
using System.Collections.Generic;
using System.Text;

namespace S7NETPLC
{
    public class Response
    {
        /// <summary>
        /// 
        /// </summary>
        public Response()
        {
            this.result = "NG";
        }
        /// <summary>
        /// 返回结果
        /// </summary>
        public string result { get; set; }
        /// <summary>
        /// 返回原因
        /// </summary>
        public string reason { get; set; }
    }
    /// <summary>
    /// 返回结果数据类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Response<T> : Response
    {
        /// <summary>
        /// 返回结果数据
        /// </summary>
        public T Body { get; set; }
    }
}
